// @ts-ignore
/* eslint-disable */
import request from '@/utils/request.ts'

/** 此处后端没有提供注释 POST /coursesBase/addCourseBase */
export async function addCourseBase(body: API.BizCoursesBase, options?: { [key: string]: any }) {
  return request<API.BaseResponse>('/coursesBase/addCourseBase', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** 此处后端没有提供注释 POST /coursesBase/deleteCourseBase */
export async function deleteCourseBase(body: API.DeleteRequest, options?: { [key: string]: any }) {
  return request<API.BaseResponse>('/coursesBase/deleteCourseBase', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** 此处后端没有提供注释 GET /coursesBase/getCoursePageList */
export async function getCoursePageList(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getCoursePageListParams,
  options?: { [key: string]: any }
) {
  return request<API.PageResponseBizCoursesBase>('/coursesBase/getCoursePageList', {
    method: 'GET',
    params: {
      ...params,
      coursePageListDto: undefined,
      ...params['coursePageListDto'],
    },
    ...(options || {}),
  })
}

/** 此处后端没有提供注释 POST /coursesBase/updateCourseBase */
export async function updateCourseBase(body: API.BizCoursesBase, options?: { [key: string]: any }) {
  return request<API.BaseResponse>('/coursesBase/updateCourseBase', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}
